<template>
	<view class="center">
		<hea-ders title="金融">
			<image class="left" slot='left' src="@/static/images/arrow_left.png" mode="widthFix" @click="back"></image>
			<text class="text" slot="official" @click="submits()">提交</text>
		</hea-ders>
		<view class="financial_text">
			app提供的金融服务为无抵押无担保的信用授信服务，使用本产品的店铺的经营数据将作为重要的授信依据。如有需要，请提交以下信息进行申请，客服人员将会即使联系您!
		</view>
		<view class="financial_one">
			<text>姓名</text>
			<input type="text" value="" placeholder="请输入" />
		</view>
		<view class="financial_one">
			<text class="phone">电话</text>
			<input type="text" value="" placeholder="请输入" />
		</view>
		<!-- 列表 -->
		<uni-collapse accordion="true" class="screen">
			<uni-collapse-item title="性别" class="screen_one">
				<view class="screen_ones" @click="change('0')">
					<view class="screen_three">
						<text>男</text>
					</view>
					<image v-show="'0' == titles " src="../../../static/images/1333.png" mode=""></image>
				</view>
				<view class="screen_ones" @click="change('1')">
					<view class="screen_three">
						<text>女</text>
					</view>
					<image v-show="'1' == titles " src="../../../static/images/1333.png" mode=""></image>
				</view>
			</uni-collapse-item>
			<uni-collapse-item title="身份" class="screen_one">
				<view class="screen_ones" @click="list('0')">
					<view class="screen_three">
						<text>企业老板</text>
					</view>
					<image v-show="'0' == coucct" src="../../../static/images/1333.png" mode=""></image>
				</view>
				<view class="screen_ones" @click="list('1')">
					<view class="screen_three">
						<text>企业管理员</text>
					</view>
					<image v-show="'1' == coucct" src="../../../static/images/1333.png" mode=""></image>
				</view>
				<view class="screen_ones" @click="list('2')">
					<view class="screen_three">
						<text>个体工商户</text>
					</view>
					<image v-show="'2' == coucct" src="../../../static/images/1333.png" mode=""></image>
				</view>
				<view class="screen_ones" @click="list('3')">
					<view class="screen_three">
						<text>普通上班族</text>
					</view>
					<image v-show="'3' == coucct" src="../../../static/images/1333.png" mode=""></image>
				</view>
				<view class="screen_ones" @click="list('4')">
					<view class="screen_three">
						<text>其他</text>
					</view>
					<image v-show="'4' == coucct" src="../../../static/images/1333.png" mode=""></image>
				</view>
			</uni-collapse-item>

		</uni-collapse>

		<view class="financial_one">
			<text class="phone">授信用途</text>
			<input type="text" value="" placeholder="必填" />
		</view>
		<view class="financial_two">
			<view class="financial_two_text">
				<text>信用凭证</text>
				<text class="add">添加图片</text>
			</view>
			<view class="financial_two_sm">
				<text class="jj">信用凭证说明：</text>
				<text class="sm">本人承诺在威淼客系统中申请办理金融、授信业务过程中所提供的材料及所述事项均是本人自愿、自行上传且真实、合法有效。</text>
			</view>
		</view>
		
		<view class="financial_three">
			<text>可用额度</text>
			<text class="text">6000元(人民币)</text>
		</view>
		
	</view>
</template>

<script>
	import uniCollapse from '@/components/uni-collapse/uni-collapse.vue'
	import uniCollapseItem from '@/components/uni-collapse-item/uni-collapse-item.vue'
	import uniList from '@/components/uni-list/uni-list.vue'
	import uniListItem from '@/components/uni-list-item/uni-list-item.vue'
	import uniSection from '@/components/uni-section/uni-section.vue'
	import heaDers from '@/pages/header/header.vue'
	export default {
		components: {
			uniSection,
			uniCollapse,
			uniCollapseItem,
			uniList,
			uniListItem,
			heaDers
		},
		data() {
			return {
				titles: 0,
				coucct: 0,
			};
		},
		methods: {
			change(index) {
				this.titles = index
				alert(this.titles)
			},
			list(index) {
				console.log(index)
				this.coucct = index
			},
			
			back() {
				uni.navigateBack({
					delta: 1
				})
			},
			submits() {
				uni.showModal({
					content:'您已授权成功，客服将尽快和您联系',
					showCancel:false   ,
					success:(res)=>{
						if(res.confirm){
							console.log(res.confirm +'确定')
							uni.navigateTo({
								url:'../client?flag='+false
							})
				
						}
					}
				})
							
			}
		}

	}
</script>
<style lang="scss">
	.center {
		background: #EEEEEE;
		height: 100vh;

		.title {
			width: 100%;
			height: 88rpx;
			padding: 0 30rpx;
			box-sizing: border-box;
			background-color: rgba(36, 153, 246, 1);
			display: flex;
			justify-content: space-between;
			align-items: center;

			image {
				width: 22rpx;
			}

			.text {
				font-size: 24rpx;
			}

			text {
				font-size: 36rpx;
				color: #fff;
				font-weight: 400;
				font-family: PingFang SC;
			}

			.ima {
				image {
					width: 40rpx;
					margin-left: 5rpx;
				}
			}
		}

		.financial_text {
			padding: 20rpx 30rpx;
			font-size: 24rpx;
			font-family: PingFang SC;
			font-weight: 400;
			line-height: 40rpx;
		}

		.financial_one {
			height: 88rpx;
			background: #fff;
			display: flex;
			align-items: center;
			justify-content: space-between;
			padding: 0 30rpx;
			margin-bottom: 20rpx;

			input {
				text-align: right;
				font-size: 28rpx;
			}

			.phone {
				font-size: 28rpx;
			}

			text {
				font-size: 32rpx;
				font-family: PingFang SC;
				font-weight: 400;
			}
		}

		.screen {
			background: #fff;

			.screen_one {
				width: 100%;
				background: #fff;
				border-bottom: 20rpx solid #EEEEEE;
				position: relative;
				font-size: 28rpx;
				padding: 0rpx 10rpx;

				.screen_three {
					height: 88rpx;
					font-size: 28rpx;
					color: #9e9e9e;
					border-bottom: 1px solid #F5F5F5;
					line-height: 88rpx;
					width: 100%;
					text-align: center;
					background: #FCFCFC;
				}

				.screen_ones {
					display: flex;

					text {
						text-align: center;
					}
				}

				image {
					width: 88rpx;
					height: 88rpx;
					position: absolute;
					left: 89%;
				}
			}

		}

		.financial_two {
			background: #fff;

			.financial_two_text {
				font-size: 28rpx;
				font-family: PingFang SC;
				font-weight: 500;
				display: flex;
				justify-content: space-between;
				padding: 24rpx 30rpx;

				.add {
					color: #2499F6;

				}
			}

			.financial_two_sm {
				font-size: 28rpx;
				color: #9E9E9E;
				padding: 0 30rpx 24rpx 30rpx;
				display: flex;

				.sm {
					width: 70%;
					font-size: 24rpx;
				}
			}
		}

		.financial_three{
			margin-top: 20rpx;
			display: flex;
			align-items: center;
			justify-content: space-between;
			background: #fff;
			font-size: 32rpx;
			color: #616161;
			font-family:PingFang SC;
			font-weight:400;
			padding: 22rpx 30rpx;
			.text{
				color: #2399F6;
				font-size: 28rpx;
			}
		}
	}
</style>
